package com.app.micaihu.base;

import android.content.Intent;

import androidx.fragment.app.Fragment;

import com.app.micaihu.R;

/**
 * fragment的基类
 * Created by linkai on 2016/7/14.
 */
@Deprecated
public class BaseOldFragment extends Fragment {
    // 数据变量
    protected String mPageName = getClass().getSimpleName();//页面标识(继承的子类一律用此变量标识页面)
    /******************所有重写的方法  end **************/
    @Override
    public void startActivity(Intent intent) {
        try {
            super.startActivity(intent);
            getActivity().overridePendingTransition(R.anim.base_slide_right_in, R.anim.base_slide_remain);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void startActivityForResult(Intent intent, int requestCode) {
        try {
            super.startActivityForResult(intent, requestCode);
            getActivity().overridePendingTransition(R.anim.base_slide_right_in, R.anim.base_slide_remain);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    /******************所有重写的方法  end **************/
}
